package com.ghy.dto;

import com.ghy.constant.RE;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.Pattern;

/**
 * @author GaoHeYang
 */
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Schema(name = "优惠卷分页DTO")
@Data
public class CouponsPageDTO extends PageDTO implements RE {


    @Pattern(regexp = TITLE_RE, message = TITLE_RE_MSG)
    @Schema(description = "标题")
    private String title;

    @Pattern(regexp = CODE_RE, message = CODE_RE_MSG)
    @Schema(description="兑换码")
    private String code;

}
